The Keychain Manager provides the function KCNewItem to create a keychain item reference. A keychain item reference is a reference to an opaque structure that contains information about the keychain item. The Keychain Manager uses a keychain reference to uniquely identify a keychain item.
After you are finished with a keychain item reference, you should call the function KCReleaseItem to dispose of the memory it occupied. On return, KCReleaseItem sets the reference to
NULL
. You should not use it after this.